package com.friendsoft.crm.service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

import com.friendsoft.crm.entity.User;
import com.friendsoft.crm.exception.NoEntityFoundException;

@WebService
public interface IUserService {
	@WebMethod
	User createUser(@WebParam(name="user")User user) ;
	
	@WebMethod
	User updateUser(@WebParam(name="user")User user) throws NoEntityFoundException ;
	
	@WebMethod
	User findUserById(@WebParam(name="userId")long id) ;
	
	@WebMethod
	User deleteUserById(@WebParam(name="userId")long id) throws NoEntityFoundException ;
}
